This software is free for personal use. To obtain a cheap and simple license for
corporate, commercial or institutional use, contact the author at one of the
addresses listed at the end of this document. THIS SOFTWARE IS PROVIDED AS IS
WITHOUT WARRANTIES. USE AT YOUR OWN RISK! You are encouraged to share this
software with other people and to upload it to online services, but you may not
charge money for it and you should only transfer the complete package. Contact
me if you doubt whether you have a complete package. Inclusion on CD-ROMs
requires explicit permission from me (the author).
change case is an AppleScript Scripting Addition (OSAX) which transforms the
case of the text passed to it (in a variety of ways). This OSAX is most likely
ONLY useful for working with English language text, since other languages have
their own rules for capitalization, and the Scripting Addition only looks for
the twenty-six characters used in English.
INSTALLATION:
______________________
To install: Drag Change Case to the Scripting Additions folder inside the
Extensions folder.
USAGE:
_______________
change case of <anything> [ to upper/lower/title case
/sentence case/toggle case/who cares ]
the direct parameter ( just after "of" ) can be a string or list of
strings. If the optional paramter specifying the transform is
ommitted, it defaults to upper case.
I would have preferred to add the word "case" after each of the
enumerated transform types but AppleScript recognizes "upper case" as
a class type, so I left it off of lower and upper. Unfortunately it
isn't terribly consistent.
The upper and lower transforms are probably clear.
Title case makes the first alpha character after a non-alpha character
upper case.
Sentence case searches for the first alpha character in the string and
capitalizes it, then continues on searching for one of /!/./?/ and
capitalizes the next alpha character after seeing one of the
punctuation marks (all other characters are left untouched).
Toggle just switches the case of each character from whatever it was.
The "who cares" option was added mostly for fun (well, totally for fun)
and randomly changes the case of each letter (if anyone finds a use
for this option other than creating electronic ransom notes, please
let me know...).
______________________
Comments, bug reports and suggestions are welcomed. If you have any ideas for useful Scripting Additions which haven't been written yet, send me a message describing your idea.